const routes = [{
    path: '/',
    redirect: {
      name: "runningStatus"
    }
  },
  {
    path: '/runningStatus', // 运行状态
    name: 'runningStatus',
    component: () => import("@/views/runningStatus"),
    meta: {
      title: '运行状态'
    }
  },
  {
    path: '/login', //登录
    name: 'login',
    component: () => import("@/views/common/login.vue"),
    meta: {
      title: '登录'
    }
  },

  {
    path: '/networkConfig', //网络配置
    name: 'networkConfig',
    component: () => import("@/views/basicConfiguration/networkConfig.vue"),
    meta: {
      title: '网络配置'
    }
  },
  {
    path: '/mediaConfig', //媒体配置
    name: 'mediaConfig',
    component: () => import("@/views/basicConfiguration/mediaConfig.vue"),
    meta: {
      title: '媒体配置'
    }
  },
  {
    path: '/virtualTerminal', //虚拟终端配置
    name: 'virtualTerminal',
    component: () => import("@/views/numberConfiguration/virtualTerminal.vue"),
    meta: {
      title: '虚拟终端配置'
    }
  },
  {
    path: '/ThirdPartyTerminal', //第三方终端配置
    name: 'ThirdPartyTerminal',
    component: () => import("@/views/numberConfiguration/ThirdPartyTerminal.vue"),
    meta: {
      title: '第三方终端配置'
    }
  },
  {
    path: '/logManagement', //日志管理
    name: 'logManagement',
    component: () => import("@/views/systemTools/logManagement.vue"),
    meta: {
      title: '日志管理'
    }
  },
  // {
  //   path: '/userManagement', //用户管理
  //   name: 'userManagement',
  //   component: () => import("@/views/systemTools/userManagement.vue"),
  //   meta: {
  //     title: '用户管理'
  //   }
  // },
  {
    path: '/configManagement', //配置管理
    name: 'configManagement',
    component: () => import("@/views/systemTools/configManagement.vue"),
    meta: {
      title: '配置管理'
    }
  },
  {
    path: '/systemUpgrade', //系统升级
    name: 'systemUpgrade',
    component: () => import("@/views/systemTools/systemUpgrade.vue"),
    meta: {
      title: '系统升级'
    }
  },
  {
    path: '/systemRestart', //系统重启
    name: 'systemRestart',
    component: () => import("@/views/systemTools/systemRestart.vue"),
    meta: {
      title: '系统重启'
    }
  },
  //demo
  // {
  //   path: '/echartsData',
  //   component: () => import("@/views/demoData/data.vue"),
  //   name: 'echartsData',
  //   meta: {
  //     title: 'echartsData'
  //   }
  // },
  {
    path: '*',
    component: () => import("@/views/common/404.vue"),
    name: '404',
    meta: {
      title: '错误页面'
    }
  }

]
export default routes